#include <stdio.h>

#include <devices/din.h>

int
	main(
		void)
{
	struct dindev *dev;

	dev = dindev_construct();
	if (dev == NULL) {
		printf("dindev_construct error\n");
		return -1;
	}

	printf("\n");
	while (1) {
		int i = 0;

		for (i = 0; i < 6; i++) {
			printf("%d ", dindev_getval(dev, i));
		}
		printf("\r");
	}

	return 0;
}
